package cn.tx.service.Impl;

import cn.tx.dao.LendDao;
import cn.tx.model.Grade;
import cn.tx.model.Lend;
import cn.tx.service.LendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class LendServiceImpl implements LendService {

    @Autowired
    private LendDao lendDao;

    @Override
    public int insert(Lend lend){
        return lendDao.insert(lend);
    }


    @Override
    public int update(Lend lend){
        return lendDao.update(lend);
    }

    @Override
    public int delete(String ids){
        return lendDao.delete(ids);
    }

    @Override
    public List<Lend> select(int sernum){
        return lendDao.select(sernum);
    }

    @Override
    public List<Lend> findList(Map<String,Object> querymap){
        return lendDao.findList(querymap);
    }

    @Override
    public int findTotal(Map<String, Object> querymap) {
        return lendDao.findTotal(querymap);
    }

    @Override
    public List<Lend> findAll() {
        return lendDao.findAll();
    }

}
